﻿#ifndef SERIALPORT_H
#define SERIALPORT_H

#include <QMainWindow>

/*--------user------------*/
//port
#include <QSerialPort>
//QDebug
#include <QDebug>
/*------------------------*/
namespace Ui {
class SerialPort;
}

class SerialPort : public QMainWindow
{
    Q_OBJECT

public:
    explicit SerialPort(QWidget *parent = 0);
    ~SerialPort();
private slots:
    void btn_open_port(bool);
    void btn_Detection_port(bool ok=false);
    void btn_send();
    void receiver_Edit();
private:
    Ui::SerialPort *ui;
    /*--------------functions--------------*/
    void system_init();
    /*--------------variables--------------*/
    QSerialPort global_port;
};

#endif // SERIALPORT_H
